package cn.cyl.user.service;

import cn.cyl.basic.service.BaseService;
import cn.cyl.user.domain.User;

import javax.mail.MessagingException;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cyl
 * @since 2023-02-07
 */
public interface UserService extends BaseService<User> {
    /**
     * 手机号注册
     * @param map
     */
    void phoneRegister(Map<String, String> map);

    /**
     * 邮件注册
     * @param map
     */
    void emailRegister(Map<String, String> map) throws MessagingException;

    /**
     * 点击邮件激活
     * @param email
     */
    void active(String email);
}
